<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <f:view contentType="text/html">
        <h:outputStylesheet library="css" name="default.css"/>
        <h:head>
            <title>Asignar Directores</title>
        </h:head>
        <h:body >
            <h:form>

                <p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />
                <h:panelGrid columns="4" columnClasses="alinder,alinizq,alinder,alinizq">

                    <p:outputLabel value="Director" for="al007" styleClass="requiredLbl" />
                    <p:selectOneMenu value="#{ctrMatriculasPro.activeReg.ndirector}" id="al007" style="width: 250px" required="true" label="Dir" converter="directorConverter">
                        <f:selectItems value="#{ctrDirectores.vlistaCar}" var="director"  
                                       itemLabel="#{director.nombre}" itemValue="#{director}" />
                    </p:selectOneMenu>
                    <h:panelGroup/>  <h:panelGroup/>
                    <h:panelGroup/>  <h:panelGroup/>  <h:panelGroup/>  <h:panelGroup/>
                    <h:panelGroup/>  <h:panelGroup/>  <h:panelGroup/>  <h:panelGroup/>  
                    <h:panelGroup/>  <h:panelGroup/>  <h:panelGroup/>  <h:panelGroup/>

                    <p:commandButton actionListener="#{ctrMatriculasPro.save}" value="Save" id="saveDir"  />

                </h:panelGrid>

            </h:form>
        </h:body>
    </f:view>
</html>



